finding the area of composite rectangles